package com.tanjun.common.enums.user;


import com.fasterxml.jackson.annotation.JsonValue;
import lombok.AllArgsConstructor;
import lombok.Getter;

@Getter
@AllArgsConstructor
public enum RegTypeEnum  {
    SELF(0, "主动注册"),
    MEM_INVITE(1, "其他用户邀请"),
    VEN_INVITE(2, "商户邀请"),
    ;
    @JsonValue
    private Integer type;
    private String name;

    /**
     * 枚举数据库存储值
     */
    public Integer getValue() {
        return type;
    }
}
